Skip to content

Conversation

tangyuan0821
Copy link
Contributor

@tangyuan0821 tangyuan0821 commented Aug 14, 2025

tangyuan0821 and others added 2 commits August 14, 2025 20:26
… the Unix epoch

Clarify that `os.stat_result` time fields (`st_atime`, `st_mtime`, `st_ctime`,
`st_birthtime`) and their `*_ns` variants are measured since the Unix epoch
(00:00:00 UTC, 1970-01-01). Add a short note showing how to convert these
timestamps to `datetime` using `datetime.datetime.fromtimestamp`, including a
UTC example. Documentation-only; no behavior change.

Files touched: Doc/library/os.rst

Co-authored-by: tangyuan0821 <[email protected]>
…indicate that it is the number of seconds since the Unix epoch.
Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation has still not been fixed. In the preview you can see the rendered attributes with proper indentation (top of image), and the ones with wrong indentation:

image

@StanFromIreland
Copy link
Member

Please do not use the Update Branch button unless necessary (e.g. fixing conflicts, jogging the CI, or very old PRs) as it uses valuable resources. For more information see the devguide.

@tangyuan0821
Copy link
Contributor Author

The indentation has still not been fixed. In the preview you can see the rendered attributes with proper indentation (top of image), and the ones with wrong indentation:

image

@StanFromIreland This issue was resolved about a month ago. Can you review it again? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants